package com.usian.common;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.model.common.dtos.ParamDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.common.enums.AppHttpCodeEnum;

public class BaseServiceImpl<M extends BaseMapper<T>, T> extends ServiceImpl<M,T> {
   protected ResponseResult errorResult = ResponseResult.errorResult(AppHttpCodeEnum.PARAM_INVALID);
   protected ResponseResult noData = ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST);
   protected  ResponseResult tokenInvalid = ResponseResult.errorResult(AppHttpCodeEnum.TOKEN_INVALID);
   protected  ResponseResult sucResult = ResponseResult.errorResult(AppHttpCodeEnum.SUCCESS);
}
